CC=g++
CFLAGS=-Wall -g -DDEBUG
BASEPATH = ~/Thesis/CppProjects/PixelProcessorProject
exeName = testdemo
objMain = test
obj1 = pixelimage
obj2 = pixelprocessor
obj3 = label
objects = $(BASEPATH)/$(objMain)/$(objMain).o \
					$(BASEPATH)/src/$(obj1)/$(obj1).o \
					$(BASEPATH)/src/$(obj2)/$(obj2).o \
					$(BASEPATH)/src/$(obj3)/$(obj3).o 

$(exeName): $(objects)
	$(CC) -o $(exeName) $(objects)
$(objMain): $(BASEPATH)/src/$(objMain)/$(objMain).cpp
	$(CC) -o $(BASEPATH)/src/$(objMain)/$(objMain).cpp
$(obj1).o: $(BASEPATH)/src/$(obj1)/$(obj1).cpp
	$(CC) -o $(BASEPATH)/src/$(obj1)/$(obj1).cpp
$(obj2).o: $(BASEPATH)/src/$(obj2)/$(obj2).cpp
	$(CC) -o $(BASEPATH)/src/$(obj2)/$(obj2).cpp
$(obj3).o: $(BASEPATH)/src/$(obj3)/$(obj3).cpp
	$(CC) -o $(BASEPATH)/src/$(obj3)/$(obj3).cpp

clean:
	rm -f $(exeName) $(objects)
